package org.itboys.basetemplate.entity;

import org.mongodb.morphia.annotations.Entity;
import org.itboys.mongodb.entity.BaseLongIdEntity;

/**
 * 代金券
 * 
 * @author ok
 * 
 */
@Entity(value = "Voucher", noClassnameStored = true)
public class Voucher extends BaseLongIdEntity {

	private static final long serialVersionUID = 7017150962967710216L;

	private Long centerId;
	private String name; // 折扣券名称
	private Double money = 0.0; // 抵用额度
	private Double amount = 0.0; // 使用条件（满多少元才能使用）
	private String startDate; // 开始时间
	private String endDate; // 截止时间
	private String remark; // 备注
	private Integer type; //折扣券类型 1-固定期限  2-固定天数
	private Integer dayCount; //天数

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getDayCount() {
		return dayCount;
	}

	public void setDayCount(Integer dayCount) {
		this.dayCount = dayCount;
	}

	public Long getCenterId() {
		return centerId;
	}

	public void setCenterId(Long centerId) {
		this.centerId = centerId;
	}
}
